<template>
  <!--模板-->
  <nf-grid-edit-all
    :model="model"
    :childPropsList="itemMeta"
    :formMeta="formMeta"
  >
  </nf-grid-edit-all>
  <hr>
  
  <show-object :obj="model"></show-object>
</template>


<script setup lang="ts">
  import { reactive } from 'vue'
  import { nfGridEditAll } from '../../../../lib-elp/main'
  import showObject from '../../show-object.vue'

  import _formMeta from './form.json' // './form.json'

  const props = defineProps({
    
  })

  const json = reactive(_formMeta)

  const {
    formMeta,
    itemMeta
  } = json

  const model:{[key: string | number]: object} = reactive({})

  for(const key in itemMeta) {
    model[key] = itemMeta[key].meta
  }

 
</script>